<h1>Listing criterias</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Match</th>
  </tr>

<% for criteria in @criterias %>
  <tr>
    <td><%=h criteria.name %></td>
    <td><%=h criteria.match %></td>
    <td><%= link_to 'Show', criteria %></td>
    <td><%= link_to 'Edit', edit_criteria_path(criteria) %></td>
    <td><%= link_to 'Delete', criteria, :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'Add a new Criteria', new_criteria_path %>
